package cn.dgut.Entity;

public class Recruit {
    private int recruit_id;
    private String title;
    private String phone;
    private String wage;
    private String rinfo;

    public Recruit() {
    }

    public Recruit(int recruit_id, String title, String phone, String wage, String rinfo) {
        this.recruit_id = recruit_id;
        this.title = title;
        this.phone = phone;
        this.wage = wage;
        this.rinfo = rinfo;
    }

    public int getRecruit_id() {
        return recruit_id;
    }

    public void setRecruit_id(int recruit_id) {
        this.recruit_id = recruit_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWage() {
        return wage;
    }

    public void setWage(String wage) {
        this.wage = wage;
    }

    public String getRinfo() {
        return rinfo;
    }

    public void setRinfo(String rinfo) {
        this.rinfo = rinfo;
    }


    @Override
    public String toString() {
        rinfo = rinfo.replace("\"","'");
        return "{" +
                "\"name1\":\"" + title  +
                "\",\"name2\":\"" + phone  +
                "\",\"name3\":\"" + wage  +
                "\",\"name4\":\"" + rinfo  +
                "\"}";
    }
}
